//
//  ClassColorView.m
//  SchoolTimetable
//
//  Created by 梦里都是梦 on 16/1/12.
//  Copyright © 2016年 Yuanlinqian. All rights reserved.
//

#import "ClassColorView.h"


@interface ClassColorView ()


@end
@implementation ClassColorView


-(instancetype)initWithWeek:(NSInteger)week andStart:(NSInteger )start andEnd:(NSInteger)end
{
    self = [super init];
    if (self) {
        
        self.layer.cornerRadius = 5;
        
        self.frame = CGRectMake(CELL_WIDTH * (week+1) -20+1, (CELL_WIDTH+1) * start+1,CELL_WIDTH-2, CELL_WIDTH * (end - start +1)+(end -start)-2);
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
